package com.itheima.day03.ZuoYe.ZuoYe7;

public class recommend {
    public static void recommendbook (sex x){
        switch (x){
            case GRIL :
                System.out.println("宫心记");
                break;
            case BOY:
                System.out.println("洛洛历险记");
                break;
            default:
                System.out.println("请重新输入性别");
                break;
        }
    }

    public static void main(String[] args) {
        recommendbook(sex.BOY);
        recommendbook(sex.GRIL);
    }
}
